const i18n = {
  install(app, options) {
    app.config.globalProperties.$translate = (key: string) => {
      let lang = localStorage.getItem('lang') || 'ch'
      if(options[lang][key]) {
        return options[lang][key]
      } else {
        return key
      }
    }
  }
}
export default i18n